/*
 * @Date: 2025-01-02 15:12:18
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2025-02-25 14:12:28
 * @LastEditors: g05047
 * @LastEditTime: 2025-01-10 15:12:37
 * @Description: 表单案例
 */

const metaBase = {
	isLink: '',
	isHide: false,
	isKeepAlive: true,
	isAffix: false,
	isIframe: false,
	roles: ['admin'],
	icon: 'icon-xitongshezhi',
}

export default [
	{
		path: '/example-formlayout-alone',
		name: 'formlayoutAloneExample',
		component: () => import('/@/layout/routerView/parent.vue'),
		meta: {
			title: '表单布局(单表)',
			...metaBase,
		},
		children: [
			{
				path: '/example-formlayout-alone/xmps',
				name: 'xmps-exmp',
				meta: {
					title: '示例-评审项目',
					...metaBase,
				},
				query: {
					// 流程节点
					"nodeId": "node_1",
					// 操作文件命名 [dir]-[name] dir:所属文件目录 name:具体文件名
					"handler": 'reserve-zxpssb',
					// 渲染的布局设计编码
					"bjFormCode": "case_form_zxsb",
					// 填报的表单设计编码
					"tbFormCode": "special_reserve_form_anhui",
					// 工作流编码
					"processKey": "PRO_CBK_AD34",
				},
				component: () => import('@/views/case/layouts/pages/LayoutBasicView.vue'),
			},
			{
				path: '/example-formlayout-alone/xmws',
				name: 'xmws-exmp',
				meta: {
					title: '示例-完善项目',
					...metaBase,
				},
				query: {
					"nodeId": "node_1",
					"handler": 'improve-xmwssb',
					"bjFormCode": "case_form_wsxm",
					"tbFormCodeA": "xmsb_form_wsxm_a",
					"tbFormCodeB": "xmsb_form_wsxm_b",
					"processKey": "PRO_CBK_AD34_WS",
				},
				component: () => import('@/views/case/layouts/pages/LayoutBasicView.vue'),
			},
			{
				path: '/example-formlayout-alone/sql-exmp',
				name: 'sql-exmp',
				meta: {
					title: '示例-SQL模式',
					...metaBase,
				},
				query: {
					"nodeId": "node_1",
					// 操作文件命名 [dir]-[name] dir:所属文件目录 name:具体文件名
					"handler": 'reserve-zxpssb',
					"bjFormCode": "case_form_sql",
					"tbFormCode": "special_reserve_form_anhui",
					"processKey": "PRO_CBK_AD34",
				},
				component: () => import('@/views/case/layouts/pages/LayoutBasicView.vue'),
			},
		]
	},
	{
		path: '/example-formlayout-multiple',
		name: 'formlayoutMultipleExample',
		component: () => import('/@/layout/routerView/parent.vue'),
		meta: {
			title: '表单布局(多表)',
			...metaBase,
		},
		children: [
			{
				path: '/example-formlayout-multiple/xmwssh',
				name: 'xmwssh-exmp',
				meta: {
					title: '示例-完善审核',
					...metaBase,
				},
				query: {
					// 流程节点
					"nodeId": "node_6",
					// 操作文件命名 [dir]-[name] dir:所属文件目录 name:具体文件名
					"handler": 'improve-xmwssh',
					// 渲染的布局设计编码
					"bjFormCode": "case_form_xjxm",
					// 工作流编码
					"processKey": "PRO_CBK_AD34_WS",
				},
				component: () => import('@/views/case/layouts/pages/LayoutUpDownView.vue'),
			},
			{
				path: '/example-formlayout-multiple/zjwh-exmp',
				name: 'zjwh-exmp',
				meta: {
					title: '示例-专家维护',
					...metaBase,
				},
				query: {
					"nodeId": "node_10",
					"handler": "system-zjxxwh",
					"bjFormCode": "case_form_zjwh",
					"tbFormCode": "system_zjgl_manage",
					"processKey": "PRO_CBK_AD34",
				},
				component: () => import('@/views/case/layouts/pages/LayoutUpDownView.vue'),
			},
		]
	},
	{
		path: '/example-formpage',
		name: 'layoutListExample',
		component: () => import('/@/layout/routerView/parent.vue'),
		meta: {
			title: '表单示例',
			...metaBase,
		},
		children: [
			{
				path: '/examples/form-manage-temp',
				name: 'ExmpFormManageView',
				meta: {
					title: '表单管理(临时)',
					...metaBase,
				},
				component: () => import('@/views/examples/formpage/ExmpFormManageView.vue'),
			},
		]
	},
]